home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.emx < prev    next >
Makefile  |  1993-05-11  |  4KB  |  156 lines

  1. #
  2. # Make file for use with emx-0.8f/gcc and ndmake 4.5
  3. # for compiling for MS-DOS
  4. # This version has had very little testing.
  5.  
  6. EMXPATH = c:/emx
  7.  
  8. # uncomment the following two lines if you have 
  9. # Johannes Martin's SVGA/VESA extensions
  10. # A VESA 1.2 compatible display, and the vesa_emx.com TSR are required.
  11. # "set term vgal" needs vesa_ibm.com with svgakit/vesa_emx version 1.2.
  12. # VESA = -DEMXVESA
  13. # VESALIB = -lvesa
  14.  
  15. # where to place gnuplot.gih helpfile
  16. HELPFILE = gnuplot.gih
  17.  
  18. CFLAGS = -c -O2 -DMSDOS -DREADLINE
  19.  
  20. # see other terminal defines in term.h
  21. TERMFLAGS = -DEMXVGA $(VESA)
  22.  
  23. OBJS =     bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
  24.     help.o internal.o misc.o parse.o plot.o readline.o specfun.o \
  25.     scanner.o setshow.o standard.o term.o util.o version.o \
  26.         binary.o gnubin.o
  27.  
  28. CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
  29.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  30.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  31. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  32.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pm.trm 
  33. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  34.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  35.     term\v384.trm term\x11.trm term\emxvga.trm
  36. CSOURCE8 = contour.c
  37.  
  38. all: gnuplotx.exe $(HELPFILE)
  39.  
  40. # default rules
  41. CCC = gcc $(CFLAGS) -o $*.o $*.c
  42.  
  43. gnuplotx.exe: $(OBJS) emxlink.rsp
  44.         gcc -o gnuplot @emxlink.rsp -lm -lgraph $(VESALIB)
  45.     emxbind $(EMXPATH)/bin/emx.exe gnuplot gnuplotx.exe -p -acmi
  46.  
  47. emxlink.rsp: makefile.emx
  48.     echo bitmap.o> emxlink.rsp
  49.     echo command.o>> emxlink.rsp
  50.     echo contour.o>> emxlink.rsp
  51.     echo eval.o>> emxlink.rsp
  52.     echo graphics.o>> emxlink.rsp
  53.     echo graph3d.o>> emxlink.rsp
  54.     echo help.o>> emxlink.rsp
  55.     echo internal.o>> emxlink.rsp
  56.     echo misc.o>> emxlink.rsp
  57.     echo parse.o>> emxlink.rsp
  58.     echo plot.o>> emxlink.rsp
  59.     echo readline.o>> emxlink.rsp
  60.     echo specfun.o>> emxlink.rsp
  61.     echo scanner.o>> emxlink.rsp
  62.     echo setshow.o>> emxlink.rsp
  63.     echo standard.o>> emxlink.rsp
  64.     echo term.o>> emxlink.rsp
  65.     echo util.o>> emxlink.rsp
  66.     echo version.o>> emxlink.rsp
  67.     echo binary.o>> emxlink.rsp
  68.     echo gnubin.o>> emxlink.rsp
  69.  
  70. bitmap.o: bitmap.c bitmap.h plot.h
  71.     $(CCC)
  72.  
  73. binary.o: binary.c plot.h
  74.     $(CCC)
  75.  
  76. gnubin.o: gnubin.c plot.h
  77.     $(CCC)
  78.  
  79. command.o: command.c plot.h setshow.h help.h
  80.     $(CCC) -DHELPFILE=\"$(HELPFILE)\"
  81.  
  82. contour.o: contour.c plot.h
  83.     $(CCC)
  84.  
  85. eval.o: eval.c plot.h
  86.     $(CCC)
  87.  
  88. graphics.o: graphics.c plot.h setshow.h
  89.     $(CCC)
  90.  
  91. graph3d.o: graph3d.c plot.h setshow.h
  92.     $(CCC)
  93.  
  94. help.o: help.c plot.h help.h
  95.     $(CCC)
  96.  
  97. internal.o: internal.c plot.h
  98.     $(CCC)
  99.  
  100. misc.o: misc.c plot.h setshow.h
  101.     $(CCC)
  102.  
  103. parse.o: parse.c plot.h
  104.     $(CCC)
  105.  
  106. plot.o: plot.c plot.h setshow.h
  107.     $(CCC)
  108.  
  109. readline.o: readline.c
  110.     $(CCC)
  111.  
  112. scanner.o: scanner.c plot.h
  113.     $(CCC)
  114.  
  115. setshow.o: setshow.c plot.h setshow.h
  116.     $(CCC)
  117.  
  118. specfun.o: specfun.c plot.h
  119.     $(CCC)
  120.  
  121. standard.o: standard.c plot.h
  122.     $(CCC)
  123.  
  124. term.o: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  125.     $(CCC) $(TERMFLAGS) -Iterm
  126.  
  127. util.o: util.c plot.h
  128.     $(CCC)
  129.  
  130. version.o: version.c
  131.     $(CCC)
  132.  
  133. # convert gnuplot.doc to gnuplot.gih
  134. doc2gih.exe: docs\doc2gih.c
  135.     gcc -o doc2gih  docs/doc2gih.c
  136.     emxbind $(EMXPATH)/bin/emx.exe doc2gih doc2gih.exe
  137.  
  138. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  139.     doc2gih docs\gnuplot.doc $(HELPFILE)
  140.  
  141. clean:
  142.     del *.o
  143.     del emxlink.rsp
  144.     del gnuplot
  145.     del doc2gih
  146.  
  147. # veryclean target - remove all files created by the makefile
  148.  
  149. veryclean: clean
  150.     del gnuplot.exe
  151.     del doc2gih.exe
  152.     del gnuplot.gih
  153.  
  154.  
  155.